import Vue from "vue";
import VueRouter from "vue-router";
import App from "./app.vue";
import Home from "./pages/home/home.vue";
import Class from "./pages/class/class.vue";
import Search from "./pages/search/search.vue";
import Cart from "./pages/cart/cart.vue";
import Me from "./pages/me/me.vue";


Vue.use(VueRouter)
const router =new VueRouter({
	// mode:"history",
	routes:[
	    // {path:"/home",component:Home},
	    // 指定一开始加载的页面
		{path:"/",component:Home},
		{path:"/class",component:Class},
		{path:"/search",component:Search},
		{path:"/cart",component:Cart},
		{path:"/me",component:Me}
	]
})
// 指定一开始加载的页面
// router.push("/my");
new Vue({
	router,
	render:h=>h(App)
}).$mount("#app")